﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IDAL
{
    public interface IDALUser
    {
        /// <summary>
        /// 查询所有用户
        /// </summary>
        /// <returns>查询到的用户数组</returns>
        List<User> Inquire();
        /// <summary>
        /// 查询指定ID的用户
        /// </summary>
        /// <param name="id">用户id</param>
        /// <returns></returns>
        List<User> Inquire(int id);
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="user">添加的对象</param>
        /// <returns>是否添加成功</returns>
        List<User> Add(Model.User user);
        /// <summary>
        /// 更新用户
        /// </summary>
        /// <param name="user">需要更新的用户</param>
        /// <returns>是否更新成功</returns>
        List<User> Update(Model.User user);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="id">需要删除的用户的ID</param>
        /// <returns>是否删除成功</returns>
        List<User> Delete(int id);

    }
}
